﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Practices.Unity;
using NeuralStock.DomainService.Interfaces;
using NeuralStock.DomainService.Implementation;

namespace NeuralStock.DomainService
{
    public static class Bootstrapper
    {
        public static IUnityContainer GetUnityContainer()
        {
            IUnityContainer container = new UnityContainer();
            RegisterDomainDependencies(container);

            return container;
        }

        public static void RegisterDomainDependencies(IUnityContainer container)
        {
            container.RegisterType<ICompanyService, CompanyService>()
            .RegisterType<ICompanyQuotationService, CompanyQuotationService>()
            .RegisterType<IFinancialReportService, FinancialReportService>()
            .RegisterType<IFinancialAnalysisService, FinancialAnalysisService>()
            .RegisterType<IBossaImportService, BossaImportService>()
            .RegisterType<IMacroDataImportService, MacroDataImportService>()
            .RegisterType<IMacroDataService, MacroDataService>()
            .RegisterType<IGamblerService, GamblerService>()
            .RegisterType<IGpwCompanyIndicatorsImportService, GpwCompanyIndicatorsImportService>()
            .RegisterType<IMoneyImportService, MoneyImportService>()
            .RegisterType<ICapEbitService, CapEbitService>()
            .RegisterType<IGpwCompanyQuotationImportService, GpwCompanyQuotationImportService>();
        }
    }
}
